import request from '@/utils/request'

export function keysSize(query) {
  return request({
    url: '/monitor/redis/keysSize',
    method: 'get',
    params: query
  })
}

export function redisInfo(query) {
  return request({
    url: '/monitor/redis/info',
    method: 'get',
    params: query
  })
}

export function memoryInfo(query) {
  return request({
    url: '/monitor/redis/memoryInfo',
    method: 'get',
    params: query
  })
}

export function queryDiskInfo(query) {
  return request({
    url: '/monitor/redis/queryDiskInfo',
    method: 'get',
    params: query
  })
}

export function monitoringList(query) {
  return request({
    url: '/system/config/monitoringList',
    method: 'get',
    params: query
  })
}
export function editMonitoring(query) {
  return request({
    url: '/system/config/editMonitoring',
    method: 'put',
    data: query
  })
}
